//app.js
App({
  onLaunch: function () {
    //console.log('App Launch')
    //调用API从本地缓存中获取数据
   // var logs = wx.getStorageSync('logs') || []
    //logs.unshift(Date.now())
    //wx.setStorageSync('logs', logs)
  },

  onShow: function () {
    //console.log('App Show')
  },
  onHide: function () {
   // console.log('App Hide')
  },
  //全局变量
  globalData:{
    //是否从订单进入选择地址,默认false
    enterAddressTypeOrder:false,
    appId:"wx6a47f97e5641b02b",
    //下单是选择地址ID
    addressId:null,
    openid:null
  }
})